package com.liukai.bishe.model.doman.user;


import java.io.Serializable;

public class UserMessage implements Serializable {

    private User user; // 查找到的用户信息

    private String code; // 返回信息，根据信息判断是否登录成功

    public UserMessage(String code) {
        this.code = code;
    }

    public UserMessage(User user, String code) {
        this.user = user;
        this.code = code;
    }

    public UserMessage() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "user=" + user.toString() +
                ", code='" + code + '\'' +
                '}';
    }
}
